{include file="public/header"/}
<style type="text/css" media="screen">
/*自定义样式*/
.pcfmenu{background-color:#ffffff;top: -1px;height:50px;}
.pcfmenu a{padding: 0 25px!important;cursor:pointer;font-size: 16px!important;}
.pcfmenu1{margin-right:3px;font-size: 18px!important;} 
.pcfadmin_info{color:#000000;}  
@media screen and (max-width:700px){
    .layui-layer.layui-layer-page{width:100% !important;overflow:hidden !important;left:0 !important;}
    .layui-layer-title{width:100% !important;box-sizing:border-box;}
    .layui-layer-content{width:100% !important;}
    #pcfadmin{display:none!important;}
}
@media screen and (max-width:1150px){
    #pcfadmin{display:none!important;}
    #pcfadmin1{display:block!important;}
}
</style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部 -->
    <div class="layui-header">
        <div class="layui-logo">
            <img src="{__ADMIN_PATH}/assets/images/logo.png?v={php}echo time();{/php}"/>
            <cite>&nbsp;管理中心</cite>
        </div>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
            </li>
            {volist name="getMenu" id="vo"}
            <li class="layui-nav-item layui-hide-xs pcfmenu"  lay-unselect>
            <a nav-bind="xt{$vo.id}" lay-href="{:url($vo['url'])}" ew-title="{$vo.auth}"><i class="layui-icon pcfmenu1 {$vo.icon}"></i>{$vo.name}</a>
            </li>
            {/volist}
            <li class="layui-nav-item layui-hide-xs pcfmenu" lay-unselect><a nav-bind="xt99" lay-href="{:url('/shop/mf')}" ew-title="免费模板">
            <i class="layui-icon pcfmenu1 layui-icon-template"></i>模板</a></li>
            <!-- 小屏幕下变为下拉形式 -->
            <li class="layui-nav-item layui-hide-sm layui-show-xs-inline-block" lay-unselect>
                <a>栏目管理</a>
                <dl class="layui-nav-child">
                {volist name="getMenu" id="vo"}
                <dd lay-unselect><a nav-bind="xt{$vo.id}" lay-href="{:url($vo['url'])}" ew-title="{$vo.auth}">{$vo.name}</a></dd>
                {/volist}
                <dd lay-unselect><a nav-bind="xt99" lay-href="{:url('/shop/mf')}" ew-title="免费模板">模板</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right" >
            <li class="layui-nav-item layui-hide-xs pcfadmin_info" id="pcfadmin">
              登录账户： {$pcfadmin_info.user_name}
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect id="pcfadmin">
                <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect id="pcfadmin">
              <a href="javascript:void(0);" data-url="{:url('/index/clearCache')}" ew-event="pcfclear" title="清除缓存">
                <i class="layui-icon layui-icon-delete"></i>清除缓存
              </a>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect id="pcfadmin">
                <a href="{$Request.domain}" target="_blank" title="访问网站">
                  <i class="layui-icon layui-icon-website"></i>访问网站
                </a>
            </li>
            <li class="layui-nav-item" lay-unselect style="margin-right:10px;">
                <a>
                    <img src="{__ADMIN_PATH}/assets/images/head.png" class="layui-nav-img">
                    <cite>管理员</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd lay-unselect class="layui-hide-sm" id="pcfadmin1"><a href="javascript:void(0);" data-url="{:url('/index/clearCache')}" ew-event="pcfclear" title="清除缓存">清除缓存</a></dd>
                    <dd lay-unselect class="layui-hide-sm" id="pcfadmin1"><a href="{$Request.domain}" target="_blank" title="访问网站" >访问网站</a></dd>
                    <dd lay-unselect><a ew-href="{:url('/system.admin/userinfo')}">修改密码</a></dd>
                    <dd lay-unselect style="display:none;"><a ew-href="#">锁定屏幕</a></dd><hr>
                    <dd lay-unselect><a ew-event="logout" data-url="{:url('/login/logout')}">注销登录</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-unselect >
                <a href="javascript:;" ew-event="theme" title="主题" data-url="{$Request.domain}"><i class="layui-icon layui-icon-more-vertical"></i></a>
            </li>
        </ul>
    </div>
    <!-- 侧边栏 -->
    <div class="layui-side">
        <div class="layui-side-scroll">
            {volist name="leftmenu" id="vo"}            
            <ul class="layui-nav layui-nav-tree {neq name='$i' value='1'}layui-hide{/neq}" nav-id="xt{$vo.id}" lay-accordion="true" lay-filter="admin-side-nav" style="margin:15px 0;">
            {volist name="$vo.child" id="v1"} 
                {if($v1.child || isset($v1.child1))}
                <li class="layui-nav-item"><a target="_self"><i class="layui-icon {$v1.icon}"></i> <cite>{$v1.name}</cite></a>
                    <dl class="layui-nav-child">
                    {if(isset($v1.child1))}
                        {volist name="$v1.child1" id="v2"} 
                            <dd><a lay-href="{$v2['newurl']}" target="_self">{$v2.name}</a></dd>
                        {/volist}
                        {volist name="$v1.child" id="v3"} 
                            <dd><a lay-href="{:url($v3['url'])}" target="_self">{$v3.name}</a></dd>
                        {/volist}
                    {else/}
                        {volist name="$v1.child" id="v3"} 
                            <dd><a lay-href="{:url($v3['url'])}" target="_self">{$v3.name}</a></dd>
                        {/volist}
                    {/if}
                    </dl>
                </li>
                {elseif(!empty($v1.url))/}
                <li class="layui-nav-item"><a lay-href="{:url($v1['url'])}" target="_self" lay-direction="2">
				<i class="layui-icon {$v1.icon}"></i> <cite>{$v1.name}</cite></a>
                </li>
                {else/}
                {/if}
            {/volist}
            </ul>
            {/volist}
            <ul class="layui-nav layui-nav-tree layui-hide" nav-id="xt99" lay-accordion="true" lay-filter="admin-side-nav" style="margin:15px 0;">
                <li class="layui-nav-item"><a target="_self">
                <i class="layui-icon layui-icon-templeate-1"></i> <cite>模板列表</cite></a>
                    <dl class="layui-nav-child">
                        <dd><a lay-href="{:url('/shop/mf')}" target="_self">免费模板</a></dd>
                        <dd><a lay-href="{:url('/shop/sf')}" target="_self">商业模板</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!-- 主体部分 -->
    <div class="layui-body"></div>
    <!-- 底部 -->
    <div class="layui-footer">
        copyright © 2020 <a href="http://www.pcfcms.com" target="_blank">www.pcfcms.com</a> all rights reserved.
        <span class="pull-right">Version {$version}</span>
    </div>
</div>
{include file="public/footer"/}
<script>
    layui.use(['index'], function () {
        var $ = layui.jquery;
        var index = layui.index;

        // 默认加载主页
        index.loadHome({
            menuPath: "{:url('/index/main')}",
            menuName: '<i class="layui-icon layui-icon-home"></i>',
            loadSetting: true
        });

    });
</script>
</body>
</html>